package controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 石小俊
 */
@RestController
@RequestMapping("/log")
public class LogController {

    @RequestMapping("/add")
    public String add(){
        System.out.println("LogController.add");
        return "add";
    }

    @RequestMapping("/delete")
    public String delete(){
        System.out.println("LogController.delete");
        return "delete";
    }

    @RequestMapping("/modify")
    public String modify(){
        System.out.println("LogController.modify");
        return "modify";
    }

    @RequestMapping("/find/{id:\\d+}")
    public String findById(@PathVariable Integer id){
        System.out.println("LogController.findById");
        return "findById";
    }

    @RequestMapping("/findAll")
    public String findAll(){
        System.out.println("LogController.findAll");
        return "findAll";
    }

}
